<table>
    <tr>
        <th>{$url}</th>
        <th>{$count}</th>
    </tr>
    {section name=ref loop=$refs}
    <tr>
        <td>{$refs[ref].referer}</td>
        <td>{$refs[ref].count}</td>
    </tr>
    {/section}
</table>